package com.account.util;

import java.util.List;

public class Pager<T> {
  
  /**
   * 分页参数 每页显示数量
   */
  private Long pageSize;
  
  /**
   * 分页参数 当前页数
   */
  private Long pageNumber;
  
  /**
   * 总数量
   */
  private Long totalRecord;
  
  /**
   * 数据列表信息
   */
  private List<T> recordList;
  
  public Pager(Long pageSize, Long pageNumber, Long totalRecord, List<T> recordList){
    this.pageSize = pageSize;
    this.pageNumber = pageNumber;
    this.totalRecord = totalRecord;
   this.recordList = recordList;
  }
  
  public Long getPageSize() {
    return pageSize;
  }

  public void setPageSize(Long pageSize) {
    this.pageSize = pageSize;
  }

  public Long getPageNumber() {
    return pageNumber;
  }

  public void setPageNumber(Long pageNumber) {
    this.pageNumber = pageNumber;
  }

  public Long getTotalRecord() {
    return totalRecord;
  }

  public void setTotalRecord(Long totalRecord) {
    this.totalRecord = totalRecord;
  }

  public List<T> getRecordList() {
    return recordList;
  }

  public void setRecordList(List<T> recordList) {
    this.recordList = recordList;
  }

}
